<template>
  <van-search
  show-action
  placeholder="请输入搜索关键词"
  @search="onSearch"
>
  <template #action>
    <div @click="onSearch">搜索</div>
  </template>
</van-search>
</template>

<script>
import { shop_search } from '@/utils/api'
export default {
 data(){
     return {
         searchkeys:'',
         list:[]
     }
 },
 methods:{
     onload(){
         shop_search({searchkeys:this.searchkeys}).then((res)=>{
             console.log(res);
             this.list = res.data.list;
         })
     }
 }
}
</script>

<style>

</style>